﻿<link rel="stylesheet" href="{{ STATIC_PREFIX }}css/datatable.css" type="text/css" media="screen"/>
<script type="text/javascript" src="{{ STATIC_PREFIX }}js/jquery.dataTables.min.js"></script>
<article class="module width_full">
    <header>
        <h3 class="tabs_involved">数据</h3>
    </header>
    <div class="clearfix"></div>
    <div>
        <table cellpadding="0" cellspacing="0" border="0" class="display" id="datatable">
        </table>
    </div>
</article>
<script type="text/javascript">
    var aDataSet = [
            {% autoescape off %}{% for d in aDataSet %}[{% for items in d %}{% if forloop.last %}'{{ items }}'{% else %}'{{ items }}',{% endif %}{% endfor %}]{% if not forloop.last %},{% endif %}
        {% endfor %}{% endautoescape %}
    ];
    $(function() {
        $('#datatable').dataTable({
                    "aaData": aDataSet,
                    "oLanguage": {
                        "sUrl": "{{ STATIC_PREFIX }}js/dataTables.cn.txt"
                    },
                    "aoColumns":{% autoescape off %}{{ aoColumns }}{% endautoescape %}
                });
    });
</script>